using System;
using Headsight.BPMN2WF.BPMN.Schemas;

namespace Headsight.BPMN2WF.Testing.TestObjCtors
{
    /// <summary>
    /// <see cref="tFlowNode"/> <see cref="ITestObjCtor{T}"/>
    /// </summary>
    public class tFlowNodeCtor : ITestObjCtor<tFlowNode>
    {
        private String _id;
        private tProcessCtor _tProcessCtor;

        public tFlowNodeCtor(tProcessCtor tProcessCtor = null)
        {
            _tProcessCtor = tProcessCtor;
        }

        public tFlowNode Create()
        {
            var result = new tUserTask {id = _id};

            return result;
        }

        public tFlowNodeCtor WithId(String id)
        {
            _id = id;

            return this;
        }
    }
}